259bb380e4e0623a7bcbfedd10b947db2ad73004,core/javatests/com/google/instrumentation/stats/TagTest.java,TagTest,testHashCode,#,42

Before Change


  public void testHashCode() {
    assertThat(Tag.create(K1, V1).hashCode()).isEqualTo(Tag.create(K1, V1).hashCode());
    assertThat(Tag.create(K1, V1).hashCode()).isNotEqualTo(Tag.create(K2, V1).hashCode());
    assertThat(Tag.create(K1, V1).hashCode()).isNotEqualTo(Tag.create(K1, V2).hashCode());
  }

  @Test

After Change



  @Test
  public void testHashCode() {
    new EqualsTester()
        .addEqualityGroup(Tag.create(K1, V1).hashCode(), Tag.create(K1, V1).hashCode())
        .addEqualityGroup(Tag.create(K2, V1).hashCode())
        .addEqualityGroup(Tag.create(K1, V2).hashCode())
        .testEquals();
  }

  @Test